Solution:
stocks = [
{'index': 'mWIG40', 'name': 'TEN', 'price': 304},
{'index': 'mWIG40', 'name': 'PLW', 'price': 309},
{'index': 'sWIG80', 'name': 'BBT', 'price': 22}
]
print(list(filter(lambda item: item['index'] == 'mWIG40', stocks)))